package unit5.tetx7;

/**
 * Created by Administrator on 2017/11/27.
 */
public class StringExample6 {
    public static void main(String[] args) {
        String s[]={"ab","c","d"};
        reverse(s);
        System.out.println("s[0]="+s[0]+"  s[1]="+s[1]);
    }

    static void reverse(String s[]){
        String s0;
        s0=s[1];
        s[1]=s[0];
        s[0]=s0;
    }
}
